package com.zelin.manager.group;


import com.zelin.manager.entity.SpecificationEntity;
import com.zelin.manager.entity.SpecificationOptionEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 功能描述:
 * 返回值:
 * 作者:LZB
 * 时间: 2021/10/29 11:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Specification implements Serializable {
    private SpecificationEntity spec;
    private List<SpecificationOptionEntity> options;
    /**
     * 前端反映：
     * {"spec":{"id":11,"specName":"aa"},"options":[{"id":1,"optionName":"aa-01","specId":11}]}
     *
     * {"spec":{"specName":"aa"},"options":[{"optionName":"aa","orders":"aa-1"},{"optionName":"bb","orders":"bb-1"}]}
     *
     * {"specName": "aa", "options": [ { "optionName": "a", "orders": "b" }, { "optionName": "d", "orders": "c" } ]}
     */
}
